<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>认证授权失败</title>
    <script type="application/javascript">
        var seconds = 10;
        var logoutUrl = "#{logoutUrl}";
        var interval;

        function logout() {
            clearInterval(interval);
            window.location.href = logoutUrl;
        }

        function init() {
            interval = setInterval(function () {
                if (seconds <= 0) {
                    window.location.href = logoutUrl;
                } else {
                    document.getElementById('sec').innerText = seconds + '';
                    seconds--;
                }
            }, 1000);
        }

        init();
    </script>
    <style>
        body {
            text-align: center;
        }
    </style>
</head>
<body>
<h2>认证授权失败</h2>
<p>失败原因：#{message}</p>
<p>将在<span id="sec">-</span>秒后自动退出登录。<a href="javascript:logout()">立即退出</a></p>
</body>
</html>